<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	ExpressForm form = (ExpressForm)request.getAttribute("command");
	UserInfo user = (UserInfo)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
	String username = user.getName();
	String userid = user.getUsername();
	
%>

<div>
	<form id="ExpressAddForm" target="_coreIframe" method="post" action="<%=request.getContextPath()%>/visitor/doAddExpress" onkeydown="if(event.keyCode==13)return false;" enctype="multipart/form-data">
		<div class="breadcrumb">
			<div class="bcIcon"></div>
			<ul class="bcNav">
				<li>快递登记</li>
			</ul>
		</div>
		<table class="formTable">				
			<tr>
				<td class="tdTitle">快递单号1：</td>
				<td>
					<input class="inputText xs" type="text" id="num1" value="" name="num" AUTOCOMPLETE="off" >
				</td>
			</tr>
			<tr>
				<td class="tdTitle">快递单号2：</td>
				<td>
					<input class="inputText xs" type="text" id="num2" value="" name="num" AUTOCOMPLETE="off">
				</td>
			</tr>
			<tr>
				<td class="tdTitle">快递单号3：</td>
				<td>
					<input class="inputText xs" type="text" id="num3" value="" name="num" AUTOCOMPLETE="off">
				</td>
			</tr>
			<tr>
				<td class="tdTitle">快递单号4：</td>
				<td>
					<input class="inputText xs" type="text" id="num4" value="" name="num" AUTOCOMPLETE="off">
				</td>
			</tr>
			<tr>
				<td class="tdTitle">快递单号5：</td>
				<td>
					<input class="inputText xs" type="text" id="num5" value="" name="num" AUTOCOMPLETE="off">
				</td>
			</tr>
			<tr>
				<td class="tdTitle">快递单号6：</td>
				<td>
					<input class="inputText xs" type="text" id="num6" value="" name="num" AUTOCOMPLETE="off">
				</td>
			</tr>
			<tr>
				<td class="tdTitle">快递单号7：</td>
				<td>
					<input class="inputText xs" type="text" id="num7" value="" name="num" AUTOCOMPLETE="off">
				</td>
			</tr>
			<tr>
				<td class="tdTitle">快递单号8：</td>
				<td>
					<input class="inputText xs" type="text" id="num8" value="" name="num" AUTOCOMPLETE="off">
				</td>
			</tr>
			<tr>
				<td class="tdTitle">快递单号9：</td>
				<td>
					<input class="inputText xs" type="text" id="num9" value="" name="num" AUTOCOMPLETE="off">
				</td>
			</tr>
			<tr>
				<td class="tdTitle">快递单号10：</td>
				<td>
					<input class="inputText xs" type="text" id="num10" value="" name="num" AUTOCOMPLETE="off">
				</td>
			</tr>
			<input type="hidden" name="username" value="<%=username%>">
			<input type="hidden" name="userid" value="<%=userid%>">		
			<tr>
				<td class="tdTitle"></td>
				<td>
					<div>
						<input id="subbut" class="input-btn-microsoft" type="submit" value="提交">
						<a id="qx" class="a-btn-microsoft" href="javascript:XF.Visitor.listExpress()">取消</a>
					</div>
				</td>
			</tr>	
		</table>
	</form>
	<iframe id="_coreIframe" name="_coreIframe" style="display: none;"></iframe>
</div>
<script type="text/javascript">	
	$("#ExpressAddForm #num1").focus();
	$("#subbut").click(function() {
		var num1 = $("#num1").val();
		var num2 = $("#num2").val();
		var num3 = $("#num3").val();
		var num4 = $("#num4").val();
		var num5 = $("#num5").val();
		var num6 = $("#num6").val();
		var num7 = $("#num7").val();
		var num8 = $("#num8").val();
		var num9 = $("#num9").val();
		var num10 = $("#num10").val();
		if(num1!=""||num2!=""||num3!=""||num4!=""||num5!=""||
				num6!=""||num7!=""||num8!=""||num9!=""||num10!=""){
			$("#subbut").attr('disabled',true);
			$("#qx").attr('disabled',true);
			setTimeout(function() {
				$("#subbut").removeAttr('disabled');
				$("#qx").removeAttr('disabled');	
			},5000);
		}
	})
</script>




